<!Doctype html>  
<html lang="en">  
 <head>  
  <meta charset="UTF-8">  
  <title>Window对象状态栏信息</title>  
 </head>  
 <body>  
<script type="text/javascript">  
function setStatus(){
	var d = new Date();
	status = d.getHours()+":"+d.getMinutes()+":"+d.getSeconds();
	return true;
}
</script> 
<input type="button" onmouseover="return setStatus()" value="请观察状态栏">
</body>  
</html> 